x=eval(input())
if x%2==0 and x!=2:
    print('YES')
else:
    print('NO')
